using BaseAmd.BaseData;

namespace SiemensAmd.BasicData.S7Ex
{
	public class SieCncStateEntity : BaseCncStateEntity
	{
		public override int RunState { get; set; }

		public override string RunStateDescribe => this.RunState switch
		{
			1 => "中断", 
			2 => "停止", 
			3 => "运行", 
			4 => "等待", 
			5 => "取消", 
			256 => "RES SPENDLE_STOP", 
			257 => "CYCSTOP SPENDLE_CW", 
			258 => "CYCSTART SPENDLE_CW", 
			259 => "SPENDLE_CW/CCW", 
			_ => "--", 
		};

		public override int WorkMode { get; set; }

		public override string WorkModeDescribe => this.WorkMode switch
		{
			-1 => "REF", 
			0 => "JOG", 
			1 => "MDI", 
			2 => "AUTO", 
			_ => "--", 
		};
	}
}
